package cn.ekuma.epos.remote.hessian.service;

import java.sql.SQLException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;

import cn.ekuma.data.dao.I_DataLogic;
import cn.ekuma.epos.datalogic.I_DataLogicSystem;
import cn.ekuma.epos.datalogic.define.DataLogicSystem;

public class DataLogicSystemServlet extends AbstractDataLogicServlet {

	@Override
	protected I_DataLogic createService(ServletConfig config)
			throws ServletException {
		DataLogicSystem dataLogicSystem;
		try {
			dataLogicSystem=new DataLogicSystem(getSession(config));
		} catch (SQLException e) {
			throw new ServletException("Error configuring service :"+e);
		}
		return dataLogicSystem;
	}

	@Override
	protected Class getDataLogicClass() {
		return I_DataLogicSystem.class;
	}

}